<?php
/**
 * User: Woozee
 * Date: 2021/3/5
 * Time: 14:30
 */

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Models\Category
 *
 * @method static \Illuminate\Database\Eloquent\Builder|Category newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Category newQuery()
 * @method static \Illuminate\Database\Query\Builder|Category onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|Category query()
 * @method static \Illuminate\Database\Query\Builder|Category withTrashed()
 * @method static \Illuminate\Database\Query\Builder|Category withoutTrashed()
 * @property int $id
 * @property string $name 分类名
 * @property int $parent_id 父分类ID
 * @property int $image_id 图片ID
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereParentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property-read Category $parent
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereImageId($value)
 * @property int $section_id 版块ID
 * @property-read \App\Models\QiniuFile $image
 * @method static \Illuminate\Database\Eloquent\Builder|Category whereSectionId($value)
 * @property string $title 标题
 * @property string $content 内容
 * @property string $summary 摘要
 * @property string $summary_image_url 摘要图片链接
 * @property int $source 来源
 * @property int $source_id 来源平台的文章ID
 * @property string $source_url 摘要
 * @method static \Illuminate\Database\Eloquent\Builder|ArticlePool whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ArticlePool whereSource($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ArticlePool whereSourceId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ArticlePool whereSourceUrl($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ArticlePool whereSummary($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ArticlePool whereSummaryImageUrl($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ArticlePool whereTitle($value)
 */
class ArticlePool extends BaseModel
{
    use SoftDeletes;

    protected $guarded = ['id', 'created_at', 'updated_at', 'deleted_at'];
}
